package com.zzb.framework.modules.mail.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.zzb.framework.common.BaseEntity;


/**
 * 邮件 实体类
 */
@TableName(value = "t_sys_mail")
public class Mail extends BaseEntity<String> {
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    @TableField(value = "from_user")
    private String fromUser; //From用户
    @TableField(value = "to_user")
    private String toUser; //To用户
    @TableField(value = "subject")
    private String subject; //邮件主题
    @TableField(value = "message")
    private String message; //邮件消息
    @TableField(value = "send_status")
    private Integer sendStatus; //发送状态1/0(Yes/No)
    @TableField(value = "send_time")
    private Integer sendTime; //发送时间
    @TableField(value = "biz_content")
    private String bizContent; //业务体内容，用json保存
    @TableField(value = "biz_type")
    private Integer bizType; //业务类型

    /*----------------------get set 方法----------------------*/
    public String getId() {return id;}
    public void setId(String id) {this.id = id;}
    public String getFromUser() {
        return fromUser;
    }
    public void setFromUser(String fromUser) {
        this.fromUser = fromUser == null ? null : fromUser.trim();
    }
    public String getToUser() {
        return toUser;
    }
    public void setToUser(String toUser) {
        this.toUser = toUser == null ? null : toUser.trim();
    }
    public String getSubject() {
        return subject;
    }
    public void setSubject(String subject) {
        this.subject = subject == null ? null : subject.trim();
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }
    public Integer getSendStatus() {
        return sendStatus;
    }
    public void setSendStatus(Integer sendStatus) {
        this.sendStatus = sendStatus;
    }
    public Integer getSendTime() {
        return sendTime;
    }
    public void setSendTime(Integer sendTime) {
        this.sendTime = sendTime;
    }
    public String getBizContent() {
        return bizContent;
    }
    public void setBizContent(String bizContent) {
        this.bizContent = bizContent == null ? null : bizContent.trim();
    }
    public Integer getBizType() {
        return bizType;
    }
    public void setBizType(Integer bizType) {
        this.bizType = bizType;
    }
    /*----------------------toString 方法----------------------*/
    @Override
    public String toString() {
        return "Mail{" +
                "id='" + getId() + '\'' + ',' +
                "fromUser='" + getFromUser() + '\'' + ',' +
                "toUser='" + getToUser() + '\'' + ',' +
                "subject='" + getSubject() + '\'' + ',' +
                "message='" + getMessage() + '\'' + ',' +
                "sendStatus='" + getSendStatus() + '\'' + ',' +
                "sendTime='" + getSendTime() + '\'' + ',' +
                "bizContent='" + getBizContent() + '\'' + ',' +
                "bizType='" + getBizType() + '\'' + ',' +
                "createTime='" + getCreateTime() + '\'' + ',' +
                "creator='" + getCreator() + '\'' + ',' +
                "updateTime='" + getUpdateTime() + '\'' + ',' +
                "updater='" + getUpdater() + '\'' + ',' +
                "activate='" + getActivate() + '\'' +
                '}';
    }
}
